package gob.osinerg.emergencia.service;

import gob.osinerg.emergencia.bean.AccidenteLeve;
import gob.osinerg.emergencia.bean.FormularioEmergenciaUnmay;
import gob.osinerg.emergencia.dao.AccidenteLeveDAO;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class AccidenteLeveServiceImpl implements AccidenteLeveService{

	private AccidenteLeveDAO dao;

	public void save(AccidenteLeve bean, List detalleList, FormularioEmergenciaUnmay beanform) throws Exception {
		getDao().save(bean, detalleList, beanform);
	}
	public ArrayList getCausas(String causa) throws Exception {
        ArrayList list = new ArrayList();
        list=getDao().getCausas(causa);
        return list;
	}

	public AccidenteLeveDAO getDao() {
		return dao;
	}
	public void setDao(AccidenteLeveDAO dao) {
		this.dao = dao;
	}
	public boolean verificarReporte(String mes, String anio) throws Exception {
		boolean result = getDao().verificarReporte(mes, anio);
		return result;
	}
	
}
